package com.wg.spring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 必须在启动类包下以及同级  主配置文件只能有一个同时存在优先读取。properties
 */
@Controller
public class controller {

    @RequestMapping(value = "/say")
    @ResponseBody//http://127.0.0.1:8081/say?succse=555可以跟参数
    public String controller(String succse){
        return "1"+succse;
    }
}
